package com.hiq.psycho;

public class Word {
	private String content;

	
	public Word(String content){
		super();
		this.content = content;
	}
	
	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content
	 *            the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

	
	public boolean equals(Object o){
		if (!(o instanceof Word)){ 
			return false;
		} else {
			Word word = (Word)o;
			String s1 = this.getContent();
			String s2 = word.getContent();
			String l1 = s1.toLowerCase();
			String l2 = s2.toLowerCase();
			return (l1.equals(l2));
		}
		
	} 
	
	public int hashCode(){
		return this.getContent().toLowerCase().hashCode();
	}
}
